package org.jsola.hr.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.entity.BaseDeleteDO;
import org.jsola.core.entity.Key;

import java.math.BigDecimal;
import javax.persistence.Table;

/**
 * 参保方案模板子项
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "hr_scheme_template_item")
@Key(UUID = true)
public class SchemeTemplateItemDO extends BaseDeleteDO<String> {

    private static final long serialVersionUID = 1L;

    /**
     * 模板Id(外键)
     */
    private String templateId;
    /**
     * 可选基数最小值
     */
    private BigDecimal cardinalityMin;
    /**
     * 可选基数最大值
     */
    private BigDecimal cardinalityMax;
    /**
     * 单位缴纳比例
     */
    private BigDecimal persentCompany;
    /**
     * 默认基数
     */
    private BigDecimal cardinalityDefault;
    /**
     * 个人缴纳比例
     */
    private BigDecimal persentPersonal;
    /**
     * 单位缴纳金额
     */
    private BigDecimal amountCompany;
    /**
     * 个人缴纳金额
     */
    private BigDecimal amountPersonal;
    /**
     * 排序
     */
    private Integer sort;



}

